package com.wzk.travelspringboot.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.wzk.travelspringboot.entity.BlogComment;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @author wangzikang
 */
@Data
public class BlogVO {

    private Long id;

    private Long userId;

    private String nickName;

    private String avatar;

    private Long likeTotal;

    private String content;

    private Boolean isLiked;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    private List<String> images;

    private List<BlogCommentVO> comments;

}
